<!DOCTYPE html>
<html>
<head>
    <include file="Public/head"/>
    <script type="text/javascript" src="__JS__/TouchSlide.js"></script>
    <style>
        ::-webkit-input-placeholder {
            color: #fff;
        }
        ::-moz-placeholder {
            color: #fff;
        }
        input:-moz-placeholder ,input:-ms-input-placeholder {
            color: #fff;
        }
    </style>
</head>
<body>
<div id="page">
    <header id="header" >
        <div class="header_l"> <a class="ico_02" href="#menu"> 菜单栏 </a> </div>
        <h1>
            <div class="my-title">
                <form action="{:U('Goods/index')}" method="get">
                    <input type="text" class="classfly-search" name="title" placeholder="搜索你想要的商品..." onfocus="this.placeholder=''" onblur="this.placeholder='搜索你想要的商品...'" >
                </form>
            </div>
        </h1>
        <div class="header_r"> <a class="ico_01" href="{:U('Order/all')}"> 购物车 </a> </div>
    </header>
</div>

<div id="focus" class="focus region">
    <div class="hd">
        <ul>
        </ul>
    </div>
    <div class="bd">
        <ul>
            <goods:position pos="1" cate="null" limit="3" name="goods" key="key">
                <li><a href="{:U('Goods/detail',array('id'=>$goods['id']))}" target='_blank'><img src="http://{:C('DOMAIN')}{:get_item_imgs($goods['focus'],1,'path')['path']}" width='360' height='168' border='0' /></a></li>
            </goods:position>
        </ul>
    </div>
</div>
<script type="text/javascript">
    TouchSlide({
        slideCell:"#focus",
        titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
        mainCell:".bd ul",
        effect:"leftLoop",
        autoPlay:true,//自动播放
        autoPage:true //自动分页
    });
</script>
<!-- <div class="blank2"> </div> -->
<div id=content class="wrap">


    <div class="region row row_category">
        <ul class="flex flex-f-row">

            <li class="flex_in"> <a href="{:U('Goods/index',array('category'=>100))}" title="葡萄酒"> <img src="__IMG__/icon_indexn_01.png" /> </a>
                <p> 葡萄酒 </p>
            </li>
            <li class="flex_in"> <a href="{:U('Goods/index',array('category'=>101))}" title="水果酒"> <img src="__IMG__/icon_indexn_02.png" /> </a>
                <p> 水果酒 </p>
            </li>
            <li class="flex_in"> <a href="{:U('Goods/index',array('category'=>102))}" title="人参酒"> <img src="__IMG__/icon_indexn_03.png" /> </a>
                <p> 人参酒 </p>
            </li>
            <li class="flex_in"> <a href="{:U('Goods/index')}" title="全部商品"> <img src="__IMG__/icon_indexn_04.png" /> </a>
                <p> 全部商品 </p>
            </li>
        </ul><ul class="flex flex-f-row">
        <li class="flex_in"> <a href="{:U('Goods/index',array('category'=>103))}" title="鸡尾酒"> <img src="__IMG__/icon_indexn_05.png" /> </a>
            <p> 鸡尾酒 </p>
        </li>
        <li class="flex_in"> <a href="{:U('Goods/index',array('category'=>104))}" title="起泡酒"> <img src="__IMG__/icon_indexn_06.png" /> </a>
            <p> 起泡酒 </p>
        </li>
        <li class="flex_in"> <a href="{:U('Goods/index',array('category'=>105))}" title="蓝莓饮料"> <img src="__IMG__/icon_indexn_07.png" /> </a>
            <p> 配制酒 </p>
        </li>
        <li class="flex_in"> <a href="{:U('Center/index')}" title="会员中心"> <img src="__IMG__/icon_indexn_08.png" /> </a>
            <p> 会员中心 </p>
        </li>
    </ul>
    </div>

    <div class="blank2"></div>
    <style type="text/css">
        .picScroll3{margin:50px auto 10px; text-align:center;}
        .picScroll3 .bd ul{width:100%;  float:left; padding-top:10px;}
        .picScroll3 .bd li{width:33%; float:left; font-size:14px; text-align:center;/*border-bottom: 1px solid #f0f0f0;border-left: 1px solid #f0f0f0;*/}
        .picScroll3 .bd li a{ -webkit-tap-highlight-color:rgba(0, 0, 0, 0); /* 取消链接高亮 */}
        .picScroll3 .bd li img{width:100px; height:100px;}
        .picScroll3 .hd{display:None}
    </style>
    <div class="blank2"></div>
    <div class="item_show_box2 box1 region" style="overflow:hidden">
        <div id="picScroll3" class="picScroll3">
            <div class="hd">
                <ul></ul>
            </div>
            <div class="bd">
                <ul>
                    <goods:position pos="2" cate="null" limit="3" name="goods" key="key">
                        <li>
                            <a href="{:U('Goods/detail',array('id'=>$goods['id']))}"><img src="http://{:C('DOMAIN')}{:get_item_imgs($goods['multimage'],1,'path')['path']}" /></a>
                            <br/>
                            <span class="price_s"> ￥<span>{$goods.price}</span> </span>
                            <p>{$goods.title}</p>
                        </li>
                    </goods:position>
                </ul>
            </div>
        </div>
        <div class="position_a_lt">
            <div> </div>
            <a href="{:U('Goods/index',array('sales'=>'desc'))}">
                <p> 热卖商品 </p>
                <p class="ico_04"> </p>
            </a>
        </div>
        <div class="position_a_rb">
            <a href="{:U('Goods/index',array('sales'=>'desc'))}">
                <p> <img src="__IMG__/more.png"> </p>
            </a>
        </div>
    </div>
    <script type="text/javascript">
        TouchSlide({
            slideCell:"#picScroll3",
            titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
            autoPage:true, //自动分页
            pnLoop:"false", // 前后按钮不循环
            //switchLoad:"_src" //切换加载，真实图片路径为"_src"
        });
    </script>
    <style type="text/css">
        .picScroll{margin:50px auto 10px; text-align:center;}
        .picScroll .bd ul{width:100%;  float:left; padding-top:10px;}
        .picScroll .bd li{width:33%; float:left; font-size:14px; text-align:center;}
        .picScroll .bd li a{ -webkit-tap-highlight-color:rgba(0, 0, 0, 0); /* 取消链接高亮 */}
        .picScroll .bd li img{width:100px; height:100px;}
        .picScroll .hd{display:None}
    </style>
    <div class="blank2"></div>
    <div class="item_show_box2 box1 region" style="overflow:hidden">
        <div id="picScroll" class="picScroll">
            <div class="hd">
                <ul></ul>
            </div>
            <div class="bd">
                <ul>
                    <goods:position pos="4" cate="null" limit="3" name="goods" key="key">
                        <li>
                            <a href="{:U('Goods/detail',array('id'=>$goods['id']))}"><img src="http://{:C('DOMAIN')}{:get_item_imgs($goods['multimage'],1,'path')['path']}" /></a>
                            <br/>
                            <span class="price_s"> ￥<span>{$goods.price}</span> </span>
                            <p>{$goods.title}</p>
                        </li>
                    </goods:position>
                </ul>
            </div>
        </div>
        <div class="position_a_lt">
            <div> </div>
            <a href="search.php?intro=best">
                <p> 新品商品 </p>
                <p class="ico_04"> </p>
            </a>
        </div>
        <div class="position_a_rb">
            <a href="{:U('Goods/index',array('created_time'=>'desc'))}">
                <p> <img src="__IMG__/more.png"> </p>
            </a>
        </div>
    </div>
    <script type="text/javascript">
        TouchSlide({
            slideCell:"#picScroll",
            titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
            autoPage:true, //自动分页
            pnLoop:"false", // 前后按钮不循环
            //switchLoad:"_src" //切换加载，真实图片路径为"_src"
        });
    </script>
    <style type="text/css">
        .picScroll2{margin:50px auto 0px; text-align:center;}
        .picScroll2 .bd ul{width:100%;  float:left; padding-top:10px;}
        .picScroll2 .bd li{width:33%; float:left; font-size:14px; text-align:center; margin-bottom: 10px;}
        .picScroll2 .bd li a{ -webkit-tap-highlight-color:rgba(0, 0, 0, 0); /* 取消链接高亮 */}
        .picScroll2 .bd li img{width:100px; height:100px;}
        .picScroll2 .hd{display:None}
    </style>
    <div class="blank2"></div>
    <div class="item_show_box2 box1 region" style="overflow:hidden">
        <div id="picScroll2" class="picScroll2">
            <div class="hd">
                <ul></ul>
            </div>
            <div class="bd">
                <ul>

                    <goods:position pos="8" cate="null" limit="3" name="goods" key="key">
                        <li>
                            <a href="{:U('Goods/detail',array('id'=>$goods['id']))}"><img src="http://{:C('DOMAIN')}{:get_item_imgs($goods['multimage'],1,'path')['path']}"  /></a>
                            <br/>
                            <span class="price_s"> ￥<span>{$goods.price}</span> </span>
                            <p>{$goods.title}</p>
                        </li>
                    </goods:position>
                </ul>
            </div>
        </div>
        <div class="position_a_lt">
            <div> </div>
            <a href="{:U('Goods/index',array('position'=>8))}">
                <p> 精品推荐 </p>
                <p class="ico_04"> </p>
            </a>
        </div>
        <div class="position_a_rb">
            <a href="{:U('Goods/index',array('position'=>8))}">
                <p> <img src="__IMG__/more.png"> </p>
            </a>
        </div>
    </div>
    <script type="text/javascript">
        TouchSlide({
            slideCell:"#picScroll2",
            titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
            autoPage:true, //自动分页
            pnLoop:"false", // 前后按钮不循环
            //switchLoad:"_src" //切换加载，真实图片路径为"_src"
        });
    </script>
</div>


<include file="Public/bottom"/>

<nav id="menu" style="display:None">
    <ul>
        <volist name="categorys" id="cate">
            <li> <a href="{:U('Goods/index',array('category'=>$cate['id']))}"> {$cate.title} </a>
        </volist>
    </ul>
</nav>

<div id="main-search" class="main-search">
    <div class="hd"> <span class="ico_08 close"> 关闭 </span> </div>
    <div class="bd">
        <div class="search_box">
            <form action="search.php" method="post" id="searchForm" name="searchForm">
                <div class="content">
                    <input class="text" type="search" name="keywords" id="keywordBox" autofocus />
                    <button class="ico_07" type="submit" value="搜 索" onclick="return check('keywordBox')"></button>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="__JS__/jquery.min.js"></script>
<script type="text/javascript" src="__JS__/jquery.mmenu.js"></script>
<script type="text/javascript" src="__JS__/ectouch.js"></script>
<script type="text/javascript">
    window.onload = function(){
        $('#menu').css('display','');
    }
    $(function() {
        $('nav#menu').mmenu();
        $('#get_search_box').click(function(){
            $(".mm-page").children('div').hide();
            $("#main-search").css('position','fixed').css('top','0px').css('width','100%').css('z-index','999').show();
            //$('#keywordBox').focus();
        })
        $("#main-search .close").click(function(){
            $(".mm-page").children('div').show();
            $("#main-search").hide();
        })
    });
</script>
</body>
</html>